package tv.shsun.autoconfigure;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import tv.shsun.Remoting2SDK;

@Configuration
@EnableConfigurationProperties(FTProperties.class)
public class FTAutoConfiguration {

    @Bean
    public Remoting2SDK demoModule(FTProperties properties){
        Remoting2SDK demoModule = new Remoting2SDK();
        demoModule.setName(properties.getName());
        demoModule.setVersion(properties.getVersion());
        return demoModule;

    }
}
